#include "stdafx.h"
#include "LoginDlg.h"
#include "resource.h"

#include "../framework/ServiceManager_MsgDef.h"

CLoginDlg::CLoginDlg(HINSTANCE hInstance,UINT TemplateID,CWindowBase *pWndParent)
: CWin32Dialog( hInstance, TemplateID, pWndParent)
{
}

CLoginDlg::~CLoginDlg()
{
//	m_szUserID.clear();
//	m_szPassword.clear();
//	m_szSSNumber.clear();
}

LRESULT CLoginDlg::OnInitDialog(WPARAM wParam,LPARAM lParam)
{
	CWin32Dialog::OnInitDialog( wParam, lParam);

#ifdef _DEBUG
	SetDlgItemText( IDC_USERID, "vshower");
	SetDlgItemText( IDC_PASSWORD, "1");
	SetDlgItemText( IDC_SSNUMBER, "1");
#endif
	SetDlgItemInt( IDC_VERSION, SMMSG_VERSION);
	
	SetChildWindowNationalFont(11);

	return 0;
}

LRESULT CLoginDlg::OnOk(WPARAM wParam,LPARAM lParam)
{

	m_szUserID = GetDlgItemText( IDC_USERID);
	m_szPassword = GetDlgItemText( IDC_PASSWORD);
	m_szSSNumber = GetDlgItemText( IDC_SSNUMBER);

	return CWin32Dialog::OnOk( wParam, lParam);
}